﻿using System;
using UnityEngine;

// Token: 0x020001D9 RID: 473
public class SitAction : AgentAction
{
	// Token: 0x06000A1F RID: 2591 RVA: 0x00059D56 File Offset: 0x00057F56
	public SitAction(Vector3 target)
	{
		this.name = "Sit: " + target;
		this.target = target;
	}

	// Token: 0x06000A20 RID: 2592 RVA: 0x00059D7B File Offset: 0x00057F7B
	public override void StartAction()
	{
		this.ik = this.agent.GetComponent<GiantessIK>();
		this.ik.SetButtTarget(this.target);
	}

	// Token: 0x06000A21 RID: 2593 RVA: 0x000597B1 File Offset: 0x000579B1
	public override bool IsCompleted()
	{
		return this.hasStarted;
	}

	// Token: 0x06000A22 RID: 2594 RVA: 0x00059D9F File Offset: 0x00057F9F
	public override void Interrupt()
	{
		this.ik.CancelButtTarget();
	}

	// Token: 0x04000F86 RID: 3974
	private Vector3 target;

	// Token: 0x04000F87 RID: 3975
	private GiantessIK ik;
}
